<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link rel="shortcut icon" href="/Frontrock_favicon/favicon.ico" type="image/x-icon" />
    <meta name="description" content="Frontrock is integrating blockchain technologies to allow purchasing real estate properties a seamless experience and make the opportunities available to the world. Frontrock Marketplace, Frontrock DEX and Frontrock Banking together provides a one stop shop for real estate investment.">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCL_tt4ZGfeJOyd4SYMr4pSrjbDMJuPp4E&sensor=false"></script>
    <title>Frontrock</title>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->

<!-- update the version number as needed -->
<!-- <script defer src="https://www.gstatic.com/firebase/8.10.0/firebase-app.js"></script> -->
<!-- include only the Firebase features as you need -->
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>

<!-- TODO: Add SDKs for Firebase products that you want to use
  https://firebase.google.com/docs/web/setup#available-libraries -->
  <script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-analytics.js"></script>
  
  <!-- <script defer src="https://www.gstatic.com/firebase/8.10.0/firebase-database.js"></script> -->
  <script src="https://www.gstatic.com/firebasejs/8.8.1/firebase-database.js"></script>
  <!-- <script defer src="https://www.gstatic.com/firebase/8.10.0/firebase-functions.js"></script> -->
  <script src="https://www.gstatic.com/firebasejs/8.8.1/firebase-functions.js"></script>
  <!-- <script defer src="https://www.gstatic.com/firebase/8.10.0/firebase-messaging.js"></script> -->
  <script src="https://www.gstatic.com/firebasejs/8.8.1/firebase-messaging.js"></script>
  <!-- <script defer src="https://www.gstatic.com/firebase/8.10.0/firebase-storage.js"></script> -->
  <script src="https://www.gstatic.com/firebasejs/8.8.1/firebase-storage.js"></script>
  <!-- <script defer src="https://www.gstatic.com/firebase/8.10.0/firebase-performance.js"></script> -->
  <script src="https://www.gstatic.com/firebasejs/8.8.1/firebase-performance.js"></script>
  <!-- <script defer src="https://www.gstatic.com/firebase/8.10.0/firebase-remote-config.js"></script> -->
  <script src="https://www.gstatic.com/firebasejs/8.8.1/firebase-remote-config.js"></script>

  <!-- Insert these scripts at the bottom of the HTML, but before you use any Firebase services -->
  <!-- Firebase App (the core Firebase SDK) is always required and must be listed first -->
  <script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
  <script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>

  <!-- <div id="message" hidden>
    <h2>Welcome</h2>
    <h1>Firebase Hosting Setup Complete..</h1>
    <p>You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!</p>
    <a target="_blank" href="https://firebase.google.com/docs/hosting/">Open Hosting Documentation</a>
  </div> -->

  <script>
    // Your web app's Firebase configuration
    // For Firebase JS SDK v7.20.0 and later, measurementId is optional
    const firebaseConfig = {
      apiKey: "AIzaSyAKJPJ76Sx3pVq75JvadiVX-rs2WL_aBAs",
      authDomain: "frk-marketplace.firebaseapp.com",
      databaseURL: "https://frk-marketplace-default-rtdb.firebaseio.com",
      projectId: "frk-marketplace",
      storageBucket: "frk-marketplace.appspot.com",
      messagingSenderId: "776382664179",
      appId: "1:776382664179:web:ef19d7762d26af7a2a1686",
      measurementId: "G-FXJTH5CD0B"
    }
    // Initialize Firebase
    // console.log('firebase:', firebase)
    firebase.initializeApp(firebaseConfig)
    firebase.analytics()

    // // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
    // // The Firebase SDK is initialized and available here!
    //
    // firebase.auth().onAuthStateChanged(user => { });
    // firebase.database().ref('/path/to/ref').on('value', snapshot => { });
    // firebase.firestore().doc('/foo/bar').get().then(() => { });
    // firebase.functions().httpsCallable('yourFunction')().then(() => { });
    // firebase.messaging().requestPermission().then(() => { });
    // firebase.storage().ref('/path/to/ref').getDownloadURL().then(() => { });
    // firebase.analytics(); // call to activate
    // firebase.analytics().logEvent('tutorial_completed');
    // firebase.performance(); // call to activate
    //
    // // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥

    try {
      let app = firebase.app()
      let _modules = [
        'auth', 
        'database', 
        'firestore',
        'functions',
        'messaging', 
        'storage', 
        'analytics', 
        'remoteConfig',
        'performance'
      ]
      _modules = _modules.filter(feature => typeof app[feature] === 'function')
      console.log('Firebase SDK loaded with ', _modules)
    } catch (e) {
      console.error(e)
      console.log('Error loading the Firebase SDK, check the console.')
    }
  </script>
  </body>
</html>
